package com.talkweb.platform.commonapi.entity.db;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


import com.talkweb.platform.commonapi.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_orguserlist") // 设置数据库中表名字
@ApiModel(value = "User", description = "用户信息表")
public class User extends BaseEntity {
	
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnid;
	
	
	@Column(name = "Userid")
	@ApiModelProperty(value = "用户ID", required = true)
	private String userId;

	@Column(name = "CnName")
	@ApiModelProperty(value = "用户姓名", required = true)
	private String cnName;

	@Column(name = "pinyin")
	@ApiModelProperty(value = "用户姓名全拼", required = false)
	private String pinYin;

	@Column(name = "PASSWORD")
	@ApiModelProperty(value = "登录密码", required = true)
	private String password;
	
	@Column(name = "JobTitle")
	@ApiModelProperty(value = "职务", required = false)
	private String jobTitle;
	
	@Column(name = "secretary")
	@ApiModelProperty(value = "用户秘书", required = false)
	private String secretary;

	@Column(name = "PhoneNumber")
	@ApiModelProperty(value = "手机号码", required = false)
	private String phoneNumber;
	
	@Column(name = "QQ")
	@ApiModelProperty(value = "用户QQ号码", required = false)
	private String qq;
	
	@Column(name = "WeiXinid")
	@ApiModelProperty(value = "用户微信号码", required = false)
	private String weiXinId;
	
	//private String IndexFlag; 未知参数
	
	@Column(name = "SortNumber")
	@ApiModelProperty(value = "排序号", required = true)
	private String sortNumber;
	
	@Column(name = "InternetAddress")
	@ApiModelProperty(value = "电子邮箱地址", required = false)
	private String internetAddress;
	
	@Column(name = "LANG")
	@ApiModelProperty(value = "用户语言", required = false)
	private String lang;
	
	@Column(name = "status")
	@ApiModelProperty(value = "用户状态 0离职 1在职 ", allowableValues = "0,1", required = true)
	private String status;
	
	
	//private String HourlyWage; 未知参数
	
	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "用户创建人", required = false)
	private String addName;
	
	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "用户创建时间", required = false)
	private String docCreated;
	
	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "用户最后修改时间", required = false)
	private String lastModified;
	
	@Column(name = "LoginACCOUNT")
	@ApiModelProperty(value = "登录账号", required = true)
	private String loginAccount;
	
	//private Date JoinDate;
	
	@Column(name = "Sex")
	@ApiModelProperty(value = "性别（0：女；1：男）", required = false)
	private String sex;
	
	@Column(name = "Uuid")
	@ApiModelProperty(value = "微信集成唯一id", required = false)
	private String uuid;
	
	@Column(name = "displaytitle")
	@ApiModelProperty(value = "通讯录上的展示名", required = false)
	private String displayTitle;
	
	@Column(name = "showAddressList")
	@ApiModelProperty(value = "通讯录是否展示（0表示不展示，1表示展示）", required = false)
	private String showAddressList;
	
	@ApiModelProperty(value = "部门唯一编号", required = true)
	private String deptId;
	
	@ApiModelProperty(value = "用户主兼职  1：主职 0：兼职", required = true)
	private String mainDept;
	
	@Column(name="XmlData")
	@ApiModelProperty(value = "xml大字段，扩展用", required = false)
	private String xmlData;
}
